using UnityEditor;

namespace NodeGraph.Core
{
    public partial class GraphEditor : EditorWindow
    {
        public static GraphEditor OpenWindow() { return OpenWindow(null, null); }
        
        public static GraphEditor OpenWindow(Graph newGraph, IBlackboard blackboard) {
            var window = GetWindow<GraphEditor>();
            // SetReferences(newGraph, owner, blackboard);
            // if ( !Prefs.hideWelcomeWindow && !Application.isPlaying && welcomeShown == false ) {
            //     welcomeShown = true;
            //     var graphType = newGraph != null ? newGraph.GetType() : null;
            //     WelcomeWindow.ShowWindow(graphType);
            // }
            return window;
        }
        
    }
}